package com.test.action;

import java.io.PrintWriter;

import com.test.entity.UserInfo;
import com.test.service.OrderDetailService;

public class QueryNumberAction extends BaseAction {
	private String number;

	private OrderDetailService ods;

	public String QueryNumber() throws Exception {
		UserInfo userInfo = (UserInfo) this.getSession().get("userInfo");
		String xmlStr = ods.queryOrderDetailXmlByOrderId(number, userInfo);
		PrintWriter out = this.getResponse().getWriter();
		out.write(xmlStr);
		out.flush();
		out.close();
		return null;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public OrderDetailService getOds() {
		return ods;
	}

	public void setOds(OrderDetailService ods) {
		this.ods = ods;
	}
}
